<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="contextpath" value="${pageContext.request.contextPath}"></c:set>
<h2 class="sub-header">用户编辑</h2>
<form action="${contextpath}/update" method="post">
    <div class="form-group">
        <label for="userName" class="col-sm-2 control-label">用户名</label>
        <div class="col-sm-10">
            <input type=text" class="form-control" id="userName" name="userName" placeholder="请输入密码"
                   value="${user.userName}">
        </div>
    </div>
    <div class="form-group">
        <label for="userPassword" class="col-sm-2 control-label">密码</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" id="userPassword" name="userPassword" placeholder="请输入密码"
                   value="${user.userPassword}">
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">提交</button>
        </div>
    </div>
    <input type="hidden" name="userId" value="${user.userId}">
</form>